package com.fresh.auth.Service;

import com.fresh.entity.User;
import com.github.pagehelper.PageInfo;

public interface UserService {
    //String getPassword(String userName);

    User login(User user);

    Integer getUserId(User user);

    void add(User user);

    void delete(User user);

    void updateN(User user);

    PageInfo<User> all(int currentPage,int pageSize);

    PageInfo<User> getPageByCondition(User user, int currentPage, int pageSize);
}
